package org.zn.etl.datasource;

import java.sql.SQLException;
import java.util.Map;

import javax.sql.DataSource;

import org.apache.shardingsphere.driver.api.ShardingSphereDataSourceFactory;


/**
 * 目前无用未实现 ,  ShardingdataSource 从spring 加载管理
 * @author zhounan
 * @date  2025年1月21日
 * @description
 */
@Deprecated
public class ShardingDataSourceFactory {
	
	 public DataSource getDataSource(String  keyName,Map<String, Object> dataSourceConfig) throws SQLException{
		
		DataSource ds= ShardingSphereDataSourceFactory.createDataSource(null, null);
		return ds;
		
	}
	

}
